#aux_source_directory(. SRC_LIST)

# 设置项目 zookeeper 编译头文件
include_directories( /usr/local/zookeeper-c/include )

# 设置项目 zookeeper 库文件搜索路径 -L
link_directories( /usr/local/zookeeper-c/lib )

set(SRC_LIST 
    mprpcapplication.cc 
    mprpcconfig.cc 
    rpcheader.pb.cc 
    rpcprovider.cc 
    mprpcchannel.cc
    mprpccontroller.cc
    logger.cc
    zookeeperutil.cc)
add_library( mprpc ${SRC_LIST} )

add_definitions(-DTHREADED)

target_link_libraries( mprpc muduo_net muduo_base pthread /usr/local/zookeeper-c/lib/libzookeeper_mt.so  )
